const state = {
  shouldUpdate: false,
  categoryUnitModel: {}
}

const getters = {
  shouldUpdateGetters: (state) => state.shouldUpdate,
  categoryUnitModelGetters: (state) => state.categoryUnitModel
}

const mutations = {
  changeShouldUpdate(state, shouldUpdate) {
    state.shouldUpdate = shouldUpdate
  },
  changeCategoryUnitModel(state, categoryUnitModel) {
    state.categoryUnitModel = categoryUnitModel
  }
}

export default {
  state,
  getters,
  mutations
}
